﻿namespace iTool.Common.Result
{
    public class MethodResult
    {
        /// <summary>
        /// [真] 成功完成
        /// [假] 完成失败
        /// </summary>
        public bool IsFinished { get; set; }

        /// <summary>
        /// 结果信息
        /// </summary>
        public string Discription { get; set; }
    }

    public class MethodResult<T>
    {
        /// <summary>
        /// [真] 成功完成
        /// [假] 完成失败
        /// </summary>
        public bool IsFinished { get; set; }

        /// <summary>
        /// 结果信息
        /// </summary>
        public string Discription { get; set; }

        /// <summary>
        /// 结果数据
        /// </summary>
        public T Data { get; set; }

        /// <summary>
        /// 调试数据
        /// </summary>
        public object Debug { get; set; }
    }
}
